<template>
	<view>
		<u-navbar placeholder fixed autoBack title="实名认证"></u-navbar>

		<template>
			<view class="d-flex d-row-center" style="padding-top: 200rpx;">
				<u--image v-if="true" src="/static/image/success.png" width="544rpx" height="456rpx"></u--image>
				<u--image v-else src="/static/image/error.png" width="544rpx" height="456rpx"></u--image>
			</view>
			<view v-if="true" class="d-m-t-20 d-flex d-row-center">
				<u--image src="/static/image/min-success.png" width="48rpx" height="48rpx"></u--image>
				<text class="d-font-32 d-m-l-20" style="font-weight: bold;color: #162233;">实名认证成功！</text>
			</view>
			<view v-else class="d-m-t-20 d-flex d-row-center">
				<u--image src="/static/image/min-error.png" width="48rpx" height="48rpx"></u--image>
				<text class="d-font-32 d-m-l-20" style="font-weight: bold;color: #162233;">实名认证失败！</text>
			</view>
			<view class="d-flex d-row-center d-m-t-80">
				<view v-if="true">
					<view style="width: 500rpx;"><u-button text="返回个人中心" shape="circle" type="primary" @click="home"></u-button></view>
				</view>
				<view v-else>
					<view style="width: 500rpx;">
						<u-button text="重新认证" shape="circle" type="primary" @click="backAuth"></u-button>
						<view class="d-m-t-40"><u-button text="返回个人中心" shape="circle" type="info" @click="home"></u-button></view>
					</view>
				</view>
			</view>
		</template>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	methods: {
		home() {
			uni.$u.route({
				type: 'switchTab',
				url: '/pages/mine/mine'
			});
		},
		backAuth() {
			uni.$u.route({
				type: 'back',
				delta: 2
			});
		}
	}
};
</script>

<style lang="scss"></style>
